package com.service.admin.admin.controller.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <dl>
 * <dt>back-end</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2015</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2019年08月02日</dd>
 * </dl>
 *
 * @author
 */
@Getter
@Setter
public class MenuReq {

    private Integer id;

    @NotBlank(message = "权限名称不能为空")
    private String name;

    @NotBlank(message = "组件名称不能为空")
    private String component;

    private String url;

    private String path;

    private Integer level;

    private String iconCls;

    private Boolean keepAlive;

    @NotNull(message = "是否授权访问不能为空")
    private Boolean requireAuth;

    private Integer parentId;

    @NotNull(message = "状态不能为空")
    private Boolean enabled;

    @NotNull(message = "是否为按钮不能为空")
    private Boolean button;
}
